html,body {
  margin: 0;
  padding: 0;
  width: 400px;
  height: 590px;
}
.popup__wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.image__wrapper {
  flex: 1;
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
}

.image__wrapper header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.image__list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 10px;
  row-gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.image__list .gallery__image {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.image__item {
  position: relative;
  border: 2px solid transparent;
}

.image__item .image__select__icon {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: url(../image/unchecked.png) no-repeat;
  background-size: cover;
  background-color: #fff;
  background-position: 0px 0px;
}

.image__item.is__selected {
  border: 2px solid #409eff;
  border-radius: 2px;
}

.image__item.is__selected .image__select__icon {
  background: url(../image/checked.png) no-repeat;
  background-size: cover;
  background-color: #fff;
}

footer {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup__button__basic {
  border-radius: 20px;
  outline: none;
  border: none;
  overflow: hidden;
  padding: 0px;
  cursor: pointer;
}

#popup__export__button,
#popup__get__img__button {
  width:  100px;
  height: 40px;
  color: #fff;
  position: relative;
}
#popup__get__img__button {
  margin-right: 20px;
}

#popup__export__button>div {
  height: 40px;
  line-height: 40px;
  background-color: #409eff;
}

#popup__export__button>.popup__export__loading {
  background-color: rgba(64, 158, 255, 0.5);
  position: relative;
  z-index: 1;
}

.popup__export__loading::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
  background: url(../image/loading.png) no-repeat;
  background-size: auto 80%;
  background-position: center;
  animation: loading 1.5s linear infinite;
}

@keyframes loading {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  } to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.popup__setting__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  position: absolute;
  top: 10px;
  right: 19px;
  cursor: pointer;
}

.popup__setting__panpel {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 10;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: 0.2s all ease-out;
  transform: translateY(-100%);
  overflow: hidden;
}

.popup__setting__panpel__is__show {
  transition: 0.2s all ease-in;
  transform: translateY(0%);
}

.popup__setting__panpel header {
  width: 100%;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0px 20px;
  box-sizing: border-box;
  position: relative;
}

.popup__setting__panpel header .title{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 16px;
}

.popup__setting__panpel .setting__panpel__close {
  width: 16px;
  height: 16px;
  object-fit: contain;
  cursor: pointer;
}

.setup__form {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
  height: 0;
  overflow: hidden;
}

.setup__form>form {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.setup__form .setup__form__item {
  width: 100%;
  display: flex;
  /* align-items: center; */
  font-size: 16px;
  margin-bottom: 10px;
}

.setup__form .setup__form__item .setup__input__wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.path_preview {
  font-size: 12px;
  color: #8f8f8f;
}

.setup__label {
  display: inline-block;
  width: 60px;
  font-size: 14px;
  text-align-last: justify;
  flex-shrink: 0;
  line-height: 28px;
  margin-right: 10px;
}
/* 
.setup__form .setup__form__item {
  min-height: 40px;
} */

.setup__path__basic {
  flex: 1;
  font-size: 16px;
  text-align: right;
}

.popup__split {
  margin: 0px 5px;
}

.form__input,
.form__textarea {
  outline: none;
  height: 28px;
  border: 1.5px solid #dcdfe6;
  border-radius: 4px;
  padding-left: 8px;
}
.form__textarea {
  width: calc(100% - 47px);
  height: auto;
}
.form__input:focus,
.form__textarea:focus {
  border: 1.5px solid #409eff;
}

.setting__button__group {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.setting__button__group button {
  width: 80px;
  height: 32px;
  margin-right: 10px;
}

.setting__button__group button:last-child {
  margin-right: 0;
}

.popup__button__primary {
  background-color: #409eff;
  color: #fff;
}

.popup__button__default {
  background-color: #fff;
  border: 1px solid #dcdfe6;
  color: #333;
}

.add__dirs {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-top: 5px;
  cursor: pointer;
}

.sub__dirs {
  flex: 1;
  height: 0;
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
}
.sub__dirs::-webkit-scrollbar {
  display: none;
}

.sub__dir__item {
  width: 100%;
  margin-bottom: 8px;
  border-bottom: 1px solid #bbb;
  padding-bottom: 8px;
}

.sub__dir__item .dir__wrapper,
.sub__dir__item .page__selector {
  width: 100%;
  display: flex;
}

.sub__dir__item .dir__wrapper .remove__sub__dir {
  width: 30px;
  height: 32px;
  border: 1px solid #bfbfbf;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  border-radius: 4px;
  overflow: hidden;
}

.sub__dir__item .dir__wrapper .remove__sub__dir__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  cursor: pointer;
}

.sub__dir__item .setup__label {
  text-align-last: unset;
  text-align: right;
}

.sub__dir__item .setup__input__wrapper {
  width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: #909399;
  border-radius: 5px;
}

.scrollbar::-webkit-scrollbar-track {
  background-color: #ddd;
  border: 1px solid #ccc;
}

.scrollbar::-webkit-scrollbar-button {
  background-color: #ddd;
  display: none;
}

.scrollbar::-webkit-scrollbar-button:hover {
  background-color: #999999;
}

@keyframes hide {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(-100%);
  }
}